<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="stylesheet" href="../dist/css/bootstrap.min.css">
  <title>水平表单布局</title>
</head>
<body class="p-3">
  <form>
    <div class="row mb-3">
      <label for="name" class="col-sm-2 col-form-label">用户名</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" id="name" placeholder="用户名">
      </div>
    </div>
    <div class="row mb-3">
      <label for="pwd" class="col-sm-2 col-form-label">密码</label>
      <div class="col-sm-10">
        <input type="password" class="form-control" id="pwd" placeholder="密码">
      </div>
    </div>
    <div class="row mb-3">
      <div class="col-sm-10 offset-sm-2">
        <div class="form-check">
          <input class="form-check-input" type="checkbox" id="checkbox">
          <label class="form-check-label" for="checkbox">
            Remember me
          </label>
        </div>
      </div>
    </div>
    <div class="row mb-3">
      <div class="col-sm-10 offset-sm-2">
        <button type="submit" class="btn btn-primary">登录</button>
      </div>
    </div>
  </form>
</body>
</html>